
#include "pulse_signal.h"

/*
__IO unsigned int T = 0;
__IO float F = 0.0;

int main()
{
    if (capture_Cnt == 2) {
        T = ((overTimes * 0xFFFF) + (capture_Buf[1] - capture_Buf[0])) * 1; // Timing 1 us
        F = 1000000.0 / T;
        overTimes = 0;
        capture_Cnt = 0;

        printf("T:%d us, F:%d Hz\n", T, (int)F);
        printf("CNT0:%d, CNT1:%d\n", capture_Buf[0], capture_Buf[1]);
        
        HAL_Delay(1000);
        TIM_RESET_CAPTUREPOLARITY(&Tim2Handle, TIM_CHANNEL_3);
        __HAL_TIM_SET_CAPTUREPOLARITY(&Tim2Handle, TIM_CHANNEL_3, TIM_INPUTCHANNELPOLARITY_RISING);
        HAL_TIM_IC_Start_IT(&Tim2Handle, TIM_CHANNEL_3);
    }
}
*/
